<%-- 
    Document   : adminProjectManagement
    Created on : 2015-5
    Author     : ldx
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/adminProjectManagement.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/articleCenter.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/Velocity.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/adminProjectManagement.js"></script>
        <title>项目中心</title>
    </head>
    <body class="all-page adminProjectManagement">
        <jsp:include page="head.jsp"></jsp:include>

            <div class="articleDisplay">
                <div class="title">项目管理中心
                    <form action="GoodsCenter" method="get">
                        <input id="search" name="search" type="text" placeholder="查找（支持空格多关键字查找）"/>
                    </form>
                </div>
                <div class="content">
                    <table>
                        <thead>
                            <tr><th>项目名称</th><th>项目负责人</th><th>项目成员</th><th>建立时间</th><th>进度详情</th><th>管理选择</th></tr>
                        </thead>

                        <tbody>
                        <c:forEach items="${adminpros}" var="project">
                            <tr>
                                <td class="projectName">${project.name}</td>
                                <td><c:forEach var="leader" items="${project.listOfLeaders}"> <span>${leader}</span></c:forEach></td>
                                <td class="members"><c:forEach var="member" items="${project.listOfMembers}"><span> ${member} </span></c:forEach></td>
                                <td><fmt:formatDate value="${project.start_time}" type="date" pattern="yyyy-MM"/></td>
                                <td>
                                    <form action="adminProjectManagement?acti_id=${project.id}" name="" method="POST">
                                        <div class="adjust">
                                            <input class="detailInformation" type="submit" value="查看详情"/>
                                        </div>
                                    </form>
                                </td>
                                <td>
                                    <button>删除</button>
                                    <input type="hidden" value="${project.id}" name="pid"/>
                                </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="borrow">
            <p class="title">删除</p>
            <p class="tip">是否确认删除？<span></span></p>
            <form action="deleteProjectManagement" method="POST">
                <input class="getID" type="hidden" value="" name="pid"/>
                <div class="adjust">
                    <input type="submit" value="确认"/>
                    <input type="button" value="取消"/>						
                </div>
            </form>
        </div>

        <div class="returnMask"></div>
        
        <p class="overflowTip"></p>
    </body>
</html>
